// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ESSObject.java

package com.vandagroup.common.bo;

import com.vandagroup.common.db.ESSDataStoreManager;
import com.vandagroup.common.util.ESSLogWriter;
import java.io.Serializable;

public class ESSObject
    implements Serializable
{

    public static String copyright = "Copyright(c) 2006, vandagroup.com";
    private static ESSLogWriter logWriter = null;

    public ESSObject()
    {
    }

    public static String getCopyright()
    {
        return copyright;
    }

    public static ESSDataStoreManager getDataStore()
    {
        return ESSDataStoreManager.getInstance();
    }

    public void log(String msg)
    {
        getLogWriter().log(this, msg, 2);
    }

    public static ESSLogWriter getLogWriter()
    {
        if(logWriter == null)
            logWriter = new ESSLogWriter();
        return logWriter;
    }

    public void log(Throwable t, String msg)
    {
        getLogWriter().log(this, t, msg, 1);
    }

    public void log(String msg, int logLevel)
    {
        getLogWriter().log(this, msg, logLevel);
    }

}
